Skip to content

[STF] Replace type_name implementation with cuda::std::__pretty_nameof wrapper#8194

Merged
caugonnet merged 3 commits intoNVIDIA:mainfrom
caugonnet:stf_type_name_traits
Mar 27, 2026
Merged

[STF] Replace type_name implementation with cuda::std::__pretty_nameof wrapper#8194
caugonnet merged 3 commits intoNVIDIA:mainfrom
caugonnet:stf_type_name_traits

Conversation

@caugonnet
Copy link
Copy Markdown
Contributor

Remove the home-grown PRETTY_FUNCTION parsing in traits.cuh and replace type_name with a thin wrapper around cuda::std::__pretty_nameof(), which is the existing robust CCCL facility for compile-time type name extraction.

Description

closes

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

…wrapper

Remove the home-grown __PRETTY_FUNCTION__ parsing in traits.cuh and replace
type_name<T> with a thin wrapper around cuda::std::__pretty_nameof<T>(),
which is the existing robust CCCL facility for compile-time type name extraction.

Made-with: Cursor
@caugonnet caugonnet self-assigned this Mar 26, 2026
@caugonnet caugonnet requested a review from a team as a code owner March 26, 2026 22:06
@caugonnet caugonnet requested a review from andralex March 26, 2026 22:06
@caugonnet caugonnet added the stf Sequential Task Flow programming model label Mar 26, 2026
@github-project-automation github-project-automation bot moved this to Todo in CCCL Mar 26, 2026
@copy-pr-bot
Copy link
Copy Markdown
Contributor

copy-pr-bot bot commented Mar 26, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Mar 26, 2026
@caugonnet caugonnet enabled auto-merge (squash) March 26, 2026 22:07
Copy link
Copy Markdown
Contributor

@andralex andralex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Maybe it's worth removing type_name altogether and using __pretty_nameof as appropriate?

@caugonnet
Copy link
Copy Markdown
Contributor Author

@andralex type_name returns a string_view and the operators that __pretty_nameof lack, and we can't really add such a method to get a string view to __pretty_nameof so I left it because it's indeed much more convenient.

@caugonnet
Copy link
Copy Markdown
Contributor Author

/ok to test 4354579

@github-actions
Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 51m 58s: Pass: 100%/48 | Total: 21h 09m | Max: 42m 20s | Hits: 53%/25973

See results here.

@caugonnet caugonnet merged commit f631b09 into NVIDIA:main Mar 27, 2026
67 of 68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stf Sequential Task Flow programming model

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants